<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>hogwarts</title>
</head>
<body>
 <p>
    您好:
    {% if person.gender == "female" %}
        {{ person.name }} 女士
    {% else %}
        {{ person.name }} 先生
    {% endif %}
 </p>
</body>
</html>